<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
class Web extends Controller
{
	function __construct(){
		parent::__construct();
	}
	
	/*
	*	关于我们
	*/
    public function index(){
    	$type = input('type');

    	switch ($type) {
			case '1':
				$title = '关于我们';
				break;
			case '2':
				$title = '用户协议';
				break;
			case '3':
				$title = '版权信息';
				break;
			case '4':
				$title = '商户合作';
				break;
			case '5':
				$title = '软件介绍';
			case '6':
				$title = '食圈1';	
				break;
			case '7':
				$title = '食圈2';	
				break;
			case '8':
				$title = '食圈3';	
				break;
			case '9':
				$title = '商城1';	
				break;
			case '10':
				$title = '商城2';
				break;
			case '11':
				$title = '商城3';	
				break;
		}
 
		$web = db('web')->where(array('type'=>$type))->find();
		$this->assign("web",$web);
		$this->assign("title",$title);
		return $this->fetch();
    }
	
}